#define _CRT_SECURE_NO_WARNINGS 1

iostream& operator>>(iostream& is, string& s)
{
	s.clean();
	int i = 0;
	char ch;
	char buff[256];
	ch = is.get();
	while (ch != ' ' && ch != '\n')
	{
		buff[i++] += ch;
		if (i == 255)
		{
			buff[i] = '\0';
			str += buff;
			i = 0;
		}
		ch = is.get();
	}

	if (i > 0)
	{
		buff[i] = '\0';
		str += buff;
	}

	return is;
}